﻿<UserControl
             xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:ctrl="clr-namespace:predic.Web.Controls"
             xmlns:cc="clr-namespace:predic.Web.CustomControl"
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
                xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" x:Class="predic.Web.MainPage"
             mc:Ignorable="d"
             d:DesignHeight="600"
             d:DesignWidth="800">
	<UserControl.Resources>
		<Storyboard x:Name="ContentZoneAnimation">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="ContentDisplay">
				<EasingDoubleKeyFrame KeyTime="0" Value="0.6">
					<EasingDoubleKeyFrame.EasingFunction>
						<CubicEase EasingMode="EaseInOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1">
					<EasingDoubleKeyFrame.EasingFunction>
						<CubicEase EasingMode="EaseInOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="ContentDisplay">
				<EasingDoubleKeyFrame KeyTime="0" Value="0.6">
					<EasingDoubleKeyFrame.EasingFunction>
						<CubicEase EasingMode="EaseInOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1">
					<EasingDoubleKeyFrame.EasingFunction>
						<CubicEase EasingMode="EaseInOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>

    <Grid>
    	<Grid.Background>
    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    			<GradientStop Color="#FF6F240C" Offset="0"/>
    			<GradientStop Color="#FF42433C" Offset="0.621"/>
    			<GradientStop Color="#FF646247" Offset="0.746"/>
    			<GradientStop Color="#FF6F2C0C" Offset="1"/>
    		</LinearGradientBrush>
    	</Grid.Background>
    	<Border Padding="80,20,80,20">
    		<Grid x:Name="LayoutRoot">

    			<Grid.RowDefinitions>
    				<RowDefinition Height="30"/>
    				<RowDefinition />
    				<RowDefinition Height="35" />
    			</Grid.RowDefinitions>
    			<Grid.ColumnDefinitions>
    				<ColumnDefinition Width="Auto" />
    				<ColumnDefinition Width="*" />
    			</Grid.ColumnDefinitions>

    			<!--<ctrl:HeaderControl Grid.Row="0"
                                    Grid.Column="1" />-->

    			<Grid Grid.Row="0"
    				Grid.Column="1"
                     >
    				<TextBlock FontFamily="Verdana"
    					FontSize="16"
    					FontWeight="Bold"
    					Foreground="Gray"
    					Text="Predic System" Margin="-122,3,122,8" d:LayoutOverrides="Height" />
    			</Grid>

    			<Border Grid.Row="0"
    				Grid.Column="0" Margin="0"/>

    			<ctrl:LeftMenu Grid.Row="1"
    				Margin="0,5,0,0"
    				Grid.Column="0" >
    				<i:Interaction.Triggers>
    					<i:EventTrigger EventName="ButtonClicked">
    						<ei:ControlStoryboardAction Storyboard="{StaticResource ContentZoneAnimation}"/>
    					</i:EventTrigger>
    				</i:Interaction.Triggers>
    			</ctrl:LeftMenu>

                

    			<Grid Grid.Row="1"
    				Margin="4"
    				x:Name="ContentDisplay"
    				Grid.Column="1" RenderTransformOrigin="0.5,0.5" Background="#4D000000">
    				<Grid.RenderTransform>
    					<CompositeTransform/>
    				</Grid.RenderTransform>
    			</Grid>



    			<TextBlock Grid.Row="2"
    				Style="{StaticResource LabelBold}"
    				TextAlignment="Center"
    				Grid.ColumnSpan="2"
    				Text="ver 1.1" />
    		</Grid>
    	</Border>
    </Grid>
</UserControl>
